//
//  OceanBaseGifHeader.m
//  OceanStaffApp
//
//  Created by Zheng on 2019/7/31.
//  Copyright © 2019 Zh. All rights reserved.
//

#import "OceanBaseGifHeader.h"

@implementation OceanBaseGifHeader

- (void)configLoadingImages {

    self.lastUpdatedTimeLabel.hidden = YES;
    self.stateLabel.hidden = YES;

    [self setImages:@[[UIImage imageNamed:@"refresh_header_start"]] forState:MJRefreshStateIdle];
    [self setImages:@[[UIImage imageNamed:@"refresh_header_start"]]  forState:MJRefreshStatePulling];

    NSMutableArray *refreshingArr = [NSMutableArray array];
    for (NSUInteger i = 1; i <= 16; i++) {
        UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"refresh_header_%ld", i]];
        [refreshingArr addObject:image];
    }

    [self setImages:refreshingArr duration:0.04*refreshingArr.count forState:MJRefreshStateRefreshing];

}

@end
